<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<title>404错误</title>
	<style type="text/css">
		body{ font-size:12px; font-family:"Microsoft YaHei","微软雅黑","宋体", Arial, sans-serif; padding:0px; margin:0px; background:#fff; color:#555; line-height:26px;}
		body.smallpage{min-width: 1000px;}
		div,h1,p{ margin:0;padding:0; font-family:"微软雅黑";}
		a,img{border:0px;}
		a{text-decoration:none;cursor:pointer; color:#555;}
		a:hover{text-decoration:underline; color:#fe7902;}
		.mainwd{ width:1200px; margin:0px auto;min-width: 1200px;}
		.hoverno a:hover{ text-decoration:none;}
		.btn{ display:inline-block;opacity:1;cursor:pointer; text-align:center; color:#fff;border-radius:3px; outline:none;-webkit-appearance: none;}
		.btn:hover{opacity:0.9;filter:alpha(opacity=90); color:#fff; text-decoration:none;}
		h1{ font-size:24px; line-height:36px; color:#333; font-weight:normal;}
		h2{ font-size:18px; line-height:34px;color:#333;font-weight:normal;}
		.error_box{ width:800px; height:400px; background:#f5f5f5; border:1px solid #ccc; margin:65px auto; border-radius:10px;}
		.error_cont{ padding:50px 30px; text-align:center;}
		.error_cont h1{ font-size:80px; line-height:120px; color:#000;}
		.error_cont p.a1{ font-size:30px; line-height:60px;}
		.error_cont p.a2{ font-size:20px; line-height:22px;}
		.error_cont a{ display:inline-block; width:150px; height:40px; line-height:40px; color:#fff; background:#ff6600; text-align:center; margin:25px; font-size:20px;}
	</style>
</head>
<body class="smallpage">
<div class="mainwd">
	<div class="error_box">
		<div class="error_cont hoverno">
			<h1>404!</h1>
			<p class="a1"><?php echo $msg;?></p>
			<p class="a2"><?php if($url && $wait) echo "{$wait}秒后将自动跳转";?></p>
			<a class="btn" href="<?php echo __ROOT__;?>/">返回首页</a><a class="btn" href="javascript:windows.history.back();">返回上一页</a>
		</div>
	</div>
</div>
<script type="text/javascript">
	(function(){
		var wait = '<?php echo $wait;?>', url = '<?php echo $url;?>';
		wait = parseInt(wait);
		if(url!='') {
			if(wait>0) {
				var interval = setInterval(function(){
					--wait;
					if(wait <= 0) {
						location.href = url;
						clearInterval(interval);
					};
				}, 1000);
			}
			else {
				location.href = href;
			}
		}
	})();
</script>
</body>
</html>